package com.zhongan.gateway.common.constant;

/**
 * Created by sibo.wang on 16/12/20.
 */
public class GwDeveloperApiConstant {
    /**
     * gw_develop_api.auth_status
     */
    public static final String AUTH_STATUS_APPLYING     = "01";                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              //申请中
    public static final String AUTH_STATUS_IN_OPERATION = "02";                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              //生效
    public static final String AUTH_STATUS_LOCKING      = "03";                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              //锁定

    /**
     * gw_develop_api_consumer.access_way
     */
    public static final String ACCESS_WAY_ON_LINE       = "01";                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              //线上接入
    public static final String ACCESS_WAY_BELOW_LINE    = "02";                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              //线下接入

    /**
     * develop_api_consumer_flag
     */
    public static final String CALL_FLAG                = "callFlag";                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        //线上标记

    /**
     * gw_api_method_attribute_type
     */
    public static final String ATTRIBUTE_TYPE           = "02";                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              //自配置参数

    public static final String SERVICETYPE_HTTP_JSON    = "02";                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              //JSON
    public static final String SERVICETYPE_HTTP_FORM    = "01";                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              //JSON
    public static final String SERVICETYPE_DUBBO        = "03";
    //    public static final String SERVICETYPE_DUBBO        = "03";
    public static final String DATA_REPORT_HOUR         = "h";                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               //小时报
    public static final String DATA_REPORT_DAY          = "d";                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               //日报

    public static final String ENCRYPT_TYPE_RSA         = "a";                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               //RSA加密
    public static final String ENCRYPT_TYPE_3DES        = "b";                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               //3des加密
    public static final String ENCRYPT_TYPE_NULL        = "c";                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               //不加密

    public static final String RSA_PUBLIC_KEY           = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC+pdSTLSCgCupLwJgcKfHISIxy9WFRfkG2w1O2gH7PLPnMKMnzks6jWbG+Lqhd/YgGklR5QXCB7LO72wm5vVkjxY3K49cl0apqpDOlJdzVetp5SfZ9fzCaTqbm+nCfaCzHOu/62dTRH4UmGeiq1/haUkARUy0nvzJ4CK4uWcW3ewIDAQAB";                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        //rsa公钥
    public static final String RSA_PRIVATE_KEY          = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAL6l1JMtIKAK6kvAmBwp8chIjHL1YVF+QbbDU7aAfs8s+cwoyfOSzqNZsb4uqF39iAaSVHlBcIHss7vbCbm9WSPFjcrj1yXRqmqkM6Ul3NV62nlJ9n1/MJpOpub6cJ9oLMc67/rZ1NEfhSYZ6KrX+FpSQBFTLSe/MngIri5Zxbd7AgMBAAECgYB7qXk/lhAJf8sGJAEGk7Z/YX+oub3MbIcXk49jW+nlXJkTcom8cseScYW3hPA1N1TaXmRo2qetvum+uo+OaWG9kCpVrPmSA/9n/wHdtk71ibLMp84sZlfdWB8b6lyx6Jnb+uYTSjVbvOKV9X1q+PUjOYbWtPTti4ay9vxMLZGsIQJBAPUh4FMU5bFx3uZzeS6TSWVkqnaN4nISfdwLgh0lYp0oFAWWQA+R64qyJBhKGsU242e8hI8/URhrXnIlWR9pBvkCQQDHGZU5aBTagywC35ETgLwZpkimRh8vcSuD3RhTmcOh44PC+mws++Jmc7iMUw4EeHm00gEpds1pK4imVDRm+YsTAkEA0ZOP9Zg1NPtVBhQNtCtKofxp3Qg7ZSm4H0xbhs2yvQhJ7ejihi1Mgv0A7R9WOexOih9b+hi5HbaWPeL+imNCCQJAa+DqwB4rHnLwh+YHP6ADS4qT1rQr9ZLGVz6XDcVFARS7sgvqTT114LlXB4GBGN8GYvle886RYijac/UwJ5OSzQJBAOd5jmwNqeIq49cT5nzole6LUIv2ZFIW+AHm89QH5pyPqDmcq0ktHVzMZeC/1oHwn70hndAnmT6BAVrr4TOEkWg="; //rsa私钥

    public static final String LOG_TIME_FORMAT          = "yyyy-MM-dd HH:mm:ss";

    public static final String COMMON_URL               = "/gw";

    public static final String COMMON_GROOVY_URL        = "/gw/gry";
    public static final String GW_OVERFLOW              = "GW_OVERFLOW_";

    public static final String GW_FUSE_COUNT            = "GW_FUSE_COUNT_";

    public static final String GW_FUSE_CHECK            = "GW_FUSE_CHECK_";

    public static final String GW_CACHE_API             = "GW_CACHE_API_";
    public static final String GW_CACHE_DEV             = "GW_CACHE_DEV_";
    public static final String GW_CACHE_PRIVILEDGE      = "GW_CACHE_PRIVILEDGE_";
    public static final String GW_CACHE_ATTR            = "GW_CACHE_ATTR_";
    public static final String GW_CACHE_DEVIP           = "GW_CACHE_DEVIP_";

}
